import Cookies from 'js-cookie'

const TokenKey = 'awakening_era-token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getTokenHead() {
  return Cookies.get('tokenHead')
}

export function setTokenHead(tokenHead) {
  return Cookies.set('tokenHead', tokenHead)
}

export function getRefreshToekn() {
  return Cookies.get('refreshToken')
}

export function setRefreshToekn(refreshToken) {
  return Cookies.set('refreshToken', refreshToken)
}




